function initFunc() {
/* Modal Iframe Box */
$('.modal-open').click(function(){$('.modal').show().find('.modal-container').html('<iframe src="'+this.href+'"></iframe>');$('.modal-overlay').fadeTo(400,0.8);return false});$('.modal .close').click(function(){$('.modal').fadeOut('normal',function(){$('iframe',this).remove()});$('.modal-overlay').hide();return false});

/* Add Class To Article Element Individualy */
$('article').each(function(){if($(this).find('.meta b:contains(Full Time)').length){$(this).addClass('full')}else if($(this).find('.meta b:contains(Part Time)').length){$(this).addClass('part')}else if($(this).find('.meta b:contains(Internship)').length){$(this).addClass('intern')}else if($(this).find('.meta b:contains(Fresh Graduate)').length){$(this).addClass('fresh')}});

/* Filter Function Base On Class */
$(".filter :checkbox").click(function(){$("article").hide();$(".filter :checkbox:checked").each(function(){$("."+$(this).val()).show()})});
} initFunc();

jQuery.ias({
    container : '.main',
    item: 'article',
    pagination: '#blog-pager',
    next: '#blog-pager-older-link a',
    loader: '<img src="http://2.bp.blogspot.com/-qWda-ssb7hg/UWqBYj7d-CI/AAAAAAAAACA/OsUKUF-v0ak/s1600/ajax-loader.gif"/>',
    onLoadItems: function() {
        initFunc();
    }
});